{% extends 'system_template/public/pop_up_main.html' %}
{% block content %}
    <form class="layui-form">
        {% for foo in form %}
            <div class="layui-form-item">
                <label class="layui-form-label">{{ foo.label }}</label>
                <div class="layui-input-inline">
                    {{ foo }}
                    <div class="layui-form-mid">
                        {% if foo.name=='username' %}
                            登录名(必填) 唯一
                        {% elif foo.name=='password' %}
                            密码(必填) 大于6位
                        {% elif foo.name=='password2' %}
                            重复输入密码
                        {% elif foo.name=='remark' %}
                            备注信息
                        {% endif %}
                    </div>
                </div>
            </div>
        {% endfor %}
        <div class="layui-form-item">
            <div class="layui-input-block">
                <a class="layui-btn" onclick="submit_post()">提交保存</a>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>
    </form>
{% endblock %}
{% block footer %}
    <script src="{{ url_for('static',filename='js/cxcolor.min.js') }}"></script>
    <script>
        $(function () {
            layui.use(['laydate'], function () {
                $ = layui.jquery;
                form = layui.form;
                var laydate = layui.laydate;
                laydate.render({
                    elem: '#link_end_date' //指定元素
                });
            });
            $("#link_color").cxColor();
        });
    </script>
{% endblock %}
